package com.sq.partner.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.IGatewayChannelIpDao;
import com.sq.partner.manager.mybatis.model.GatewayChannelIp;

/**
 * 
 * @author Kang Zhiqiang
 *
 */
@Repository
public class GatewayChannelIpDaoImpl extends BaseDaoImpl implements
		IGatewayChannelIpDao {

	@Override
	public List<GatewayChannelIp> queryByChannelIp(GatewayChannelIp channelIp)
			throws Exception {

		List<GatewayChannelIp> channelIpList = this.queryList("queryGatewayChannelIpByMap", channelIp);
		return channelIpList;
	}

	@Override
	public void delByChannelIp(GatewayChannelIp channelIp)
			throws Exception {
		this.delete("delGatewayChannelIp", channelIp);
		
	}

	@Override
	public void save(GatewayChannelIp channelIp) throws Exception {
		this.add("insertGatewayChannelIp", channelIp);
	}

	

}
